/**
 * 
 */
package com.itr.test;

import com.itextpdf.text.pdf.parser.ImageRenderInfo;
import com.itextpdf.text.pdf.parser.LocationTextExtractionStrategy;
import com.itextpdf.text.pdf.parser.RenderListener;
import com.itextpdf.text.pdf.parser.TextRenderInfo;
import com.itextpdf.text.pdf.parser.Vector;
import com.itr.calculation.MinimumEditDistance;
import com.itr.pdf.Form16Keywords;

/**
 * @author Rohit
 *
 */
public class ITRAppTextStrategy extends LocationTextExtractionStrategy implements RenderListener {

	@Override
	public void beginTextBlock() {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void renderText(TextRenderInfo renderInfo) {
		String text = renderInfo.getText();
		System.out.println("text: "+text+ "MED: "+MinimumEditDistance.minimumEditDistance(text, Form16Keywords.EMPLOYER_NAME));
		
	}

	@Override
	public void endTextBlock() {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void renderImage(ImageRenderInfo renderInfo) {
		// TODO Auto-generated method stub
		
	}

}
